package com.thread;

/**
 * @author liliang
 * @date 2019/12/19.
 */
public class MyUncaughtExceptionHandler implements Thread.UncaughtExceptionHandler {

    @Override
    public void uncaughtException(Thread t, Throwable e) {
        System.out.println("抛出异常的线程是:" + t.getName());
        System.out.println("抛出的异常是:" + e);
    }
}
